package com.youdoneed.user.query;

import com.querydsl.core.types.Path;
import com.querydsl.core.types.PathMetadata;
import com.querydsl.core.types.dsl.DateTimePath;
import com.querydsl.core.types.dsl.NumberPath;
import com.querydsl.core.types.dsl.StringPath;
import com.querydsl.sql.ColumnMetadata;
import com.youdoneed.user.model.Privacy;

import javax.annotation.Generated;
import java.sql.Types;

import static com.querydsl.core.types.PathMetadataFactory.forVariable;

/**
 * QPrivacy is a Querydsl query type for Privacy
 */
@Generated("com.querydsl.sql.codegen.MetaDataSerializer")
public class QPrivacy extends com.querydsl.sql.RelationalPathBase<Privacy> {

    private static final long serialVersionUID = -611400133;

    public static final QPrivacy Privacy = new QPrivacy("Privacy");

    public final DateTimePath<java.util.Date> createTime = createDateTime("createTime", java.util.Date.class);

    public final StringPath otherId = createString("otherId");

    public final StringPath privacyId = createString("privacyId");

    public final NumberPath<Integer> type = createNumber("type", Integer.class);

    public final StringPath userId = createString("userId");

    public final com.querydsl.sql.PrimaryKey<Privacy> primary = createPrimaryKey(privacyId);

    public QPrivacy(String variable) {
        super(Privacy.class, forVariable(variable), "null", "Privacy");
        addMetadata();
    }

    public QPrivacy(String variable, String schema, String table) {
        super(Privacy.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QPrivacy(String variable, String schema) {
        super(Privacy.class, forVariable(variable), schema, "Privacy");
        addMetadata();
    }

    public QPrivacy(Path<? extends Privacy> path) {
        super(path.getType(), path.getMetadata(), "null", "Privacy");
        addMetadata();
    }

    public QPrivacy(PathMetadata metadata) {
        super(Privacy.class, metadata, "null", "Privacy");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(createTime, ColumnMetadata.named("createTime").withIndex(5).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(otherId, ColumnMetadata.named("otherId").withIndex(3).ofType(Types.VARCHAR).withSize(20).notNull());
        addMetadata(privacyId, ColumnMetadata.named("privacyId").withIndex(1).ofType(Types.VARCHAR).withSize(20).notNull());
        addMetadata(type, ColumnMetadata.named("type").withIndex(4).ofType(Types.INTEGER).withSize(10).notNull());
        addMetadata(userId, ColumnMetadata.named("userId").withIndex(2).ofType(Types.VARCHAR).withSize(20).notNull());
    }

}

